import axios from "@/util/axios";

const base = process.env.VUE_APP_BASE_API
// const base = ''

const user = {

    // 登录
    login(params) { return axios.get(`${base}/user/login`, params)},
    // 登录
    getUserInfo() { return axios.get(`${base}/user/userInfo`)},
    // 登录
    logout() { return axios.get(`${base}/user/logout`)},

}

// export default user;
export default user